package com.naiterui.ehp.bs.cms.modules.agent.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.naiterui.ehp.bs.cms.common.constants.DsName;
import com.naiterui.ehp.bs.cms.modules.agent.entity.AgArea;
import com.naiterui.ehp.bs.cms.modules.agent.po.AreaPagePO;
import com.naiterui.ehp.bs.cms.modules.agent.vo.AreaItemVO;
import com.naiterui.ehp.bs.cms.modules.agent.vo.AreaStatisticsDetailVO;

/**
 * @author yiren
 * @since 2022/2/10
 */
@DS(DsName.EHP)
public interface AgAreaMapper extends BaseMapper<AgArea> {
	Page<AreaItemVO> getPage(@Param("page") IPage<AreaItemVO> page, @Param("ew") Wrapper<AreaPagePO> entityWrapper);

    AreaStatisticsDetailVO getAreaStatisticsDetail(Long areaId);

    List<AreaStatisticsDetailVO> getAreaStatisticsList(Long parentId);
}
